import { request } from './request'

/*
手机号登录
*/
export const _login = (phone, password) =>
  request({
    url: '/login/cellphone',
    params: {
      phone,
      password
    }
  })

// 检测手机号是否已注册
export const _phoneVerify = (phone) =>
  request({
    url: '/cellphone/existence/check',
    params: {
      phone
    }
  })

// 获取用户歌单
export const _playlist = (id) =>
  request({
    url: '/user/playlist',
    params: {
      uid: id
    }
  })
